﻿#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt">博客信息设置</td>
          </tr>
        </table></td>
    </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td>
<style type="text/css">
img.headpic{
 vertical-align: middle; max-width: 125px; max-height: 125px; width: expression(this.width >125 && this.height < this.width ? 125: true); height: expression(this.height > 125 ? 125: true); 
}
</style>
<script language="javascript">
function changeTagimg(){
	document.getElementById("EditForm").img.src =document.getElementById("EditForm").file.value;
	document.getElementById("EditForm").tagimg.value =document.getElementById("EditForm").file.value;
}
function doSave(){
	EditForm.submit();
}
function changeDetailSetting(){
	detailSetting.style.display=(detailSetting.style.display=="none"?"":"none");
}
</script>
<form name="EditForm" method="post" action="/blogUser.do" enctype="multipart/form-data">
 <input type="hidden" name="parameter" value="saveSetting">  
 <input type="hidden" name="cid" value="$!cid">
		<div style="margin:8px">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="4">
    <tr>
      <td width="20%" align="right"> 用户名</td>
      <td>$!username</td>
    </tr>
	<tr>
      <td width="20%" align="right"> 域名 </td>
      <td>$!domain</td>
    </tr>
    <tr>
      <td width="20%" align="right"> 昵称 </td>
      <td><input name="nickname" type="text" id="nickname" value="$!nickname">
          <font color="red">*</font></td>
    </tr>
	
    <tr>
      <td width="20%" align="right"> 博客主题 </td>
      <td><input name="title" type="text" id="title" value="$!title">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="20%" align="right"> 子标题 </td>
      <td><input name="subtitle" type="text" id="subtitle" value="$!subtitle">
          </td>
    </tr>
    <tr>
      <td width="20%" align="right"> 首页显示条数 </td>
      <td><input name="firtpagenum" type="text" id="firtpagenum" value="$!firtpagenum" />
          <font color="red">*</font></td>
    </tr>
	<!--
	 <tr>
      <td width="30%" align="right"> Blog类别 </td>
      <td><input name="types" type="text" id="types" value="$!types">
          <font color="red">*</font></td>
    </tr>
	
	 <tr>
      <td width="30%" align="right"> 域名</td>
      <td><input name="domain" type="text" id="domain" value="$!domain">
        <font color="red">*</font>英文字母及数字</td>
    </tr>
	-->
    <tr>
      <td width="20%" align="right"> 我的头像</td>
      <td><input name="tagimg" type="hidden" id="tagimg" value="$!tagimg">
           <span class="font06"><img src="/images/dc_img14.gif">修改头像：</span> 
		  <input type="file" name="file" id="file" onchange="changeTagimg();" ><br/>
	  &nbsp;&nbsp;
		#if($tagimg)
	  <img id="img" class="headpic" src="$!tagimg"/>
	  #else
		<img id="img" class="headpic" src="/images/default.gif"/>
		#end
			</td>
    </tr>
	<!--
    <tr>
      <td width="30%" align="right"> 回复Email</td>
      <td><input name="replyEmail" type="text" id="replyEmail" value="$!replyEmail">
          <font color="red">*</font></td>
    </tr>
	-->
    <tr>
      <td width="20%" align="right"> 博客描述</td>
      <td>          
      	<textarea name="intro" rows="5" id="intro" style="width:80%;border:1px solid gray">$!intro</textarea>
				<font color="red">(2000字以内)</font>
			</td>
    </tr>
	  <tr style="display:none">
          <td colspan="2"><a href="javascript:void(0)" onClick="changeDetailSetting()">详细设置属性设置&gt;&gt;</a></td>
        </tr>
	  <tr align="left">
      <td colspan="2"><table width="100%" border="1" id="detailSetting" style="display:none">
    <tr>
      <td width="30%" align="right"> 网页meta描述</td>
      <td><input name="metaDescription" type="text" id="metaDescription" value="$!metaDescription">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 网页meta关键字 </td>
      <td><input name="metaKeyword" type="text" id="metaKeyword" value="$!metaKeyword" />
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 模板</td>
      <td><input name="template" type="text" id="template" value="$!template" />
          <font color="red">*查看样板</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 前台列表显示条数</td>
      <td><input name="listNum" type="text" id="listNum" value="$!listNum" />
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 管理列表显示条数</td>
      <td><input name="manageListNum" type="text" id="manageListNum" value="$!manageListNum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 最新留言信息条数</td>
      <td><input name="newMessageNum" type="text" id="newMessageNum" value="$!newMessageNum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 阅读排行榜条数</td>
      <td><input name="topReadNum" type="text" id="topReadNum" value="$!topReadNum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 评论排行榜条数</td>
      <td><input name="topReviewNum" type="text" id="topReviewNum" value="$!topReviewNum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 允许评论</td>
      <td><input name="enableReview" type="text" id="enableReview" value="$!enableReview">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 允许邮件通知</td>
      <td><input name="enableEmail" type="text" id="enableEmail" value="$!enableEmail">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 首页是否显示内容</td>
      <td><input name="showContent" type="text" id="showContent" value="$!showContent">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 显示文章累计数</td>
      <td><input name="totalNumDisplay" type="text" id="totalNumDisplay" value="$!totalNumDisplay">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 编辑器类型</td>
      <td><input name="editorType" type="text" id="editorType" value="$!editorType">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> controlDisplay</td>
      <td><input name="controlDisplay" type="text" id="controlDisplay" value="$!controlDisplay">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 加入日期</td>
      <td>$!inputtime</td>
    </tr>
    <tr>
      <td width="30%" align="right"> 访问数</td>
      <td>$!readTimes</td>
    </tr>
    <tr>
      <td width="30%" align="right"> 状态</td>
      <td>$!status</td>
    </tr>
		</table>
		</td>
		</tr>
		<tr align="center">
      <td colspan="2" height="50">
				<input type="button" name="Submit" value="保存" onClick="doSave()" />
				<input type="reset" name="Reset" value="重置" />
			</td>
		</tr>
  </table>
	</div>
</form>
	</td>
	</tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end
